﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MySql.Data.MySqlClient;

namespace MysqlTest
{
    class Program
    {
        static void Main(string[] args)
        {
            TestConnect();
        }

        private static void TestConnect()
        {
            string Conn = "Database='RemoteDB';Data Source='120.26.247.240';User Id='root';Password='123456';charset='utf8';pooling=true";
            string command = "select * from machinetb";
            string FieldPasswordHash = "password";
            string FieldIdentity = "identity";
            var dataRow = MySqlHelper.ExecuteDataRow(Conn, command, null);
            string passwordHash = (string)dataRow[FieldPasswordHash];
            string identity = (string)dataRow[FieldIdentity];
            Console.WriteLine(passwordHash);
            Console.WriteLine(identity);


            string str = passwordHash + identity;
        }
    }
}
